package xyz.chaobei.gateway3.router;

import java.util.List;
import java.util.Random;

public class RandomHttpRouter implements HttpRouter {

    @Override
    public String router(List<String> list) {
        int size = list.size();
        Random random = new Random(System.currentTimeMillis());
        return list.get(random.nextInt(size));
    }
}
